package com.t282.crm.service;

import com.t282.crm.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface UserService {
    public User login(String usrName,String usrPassword);
    public User addUser(User user);
    public void deleteUser(Long usrId);
    public User updateUser(User user);
    public User getUser(Long usrId);
    public Page<User> findAllUsers(String usrName, Long roleId, Pageable pageable);

    public User getUserByUsrName(String usrName);

    /*加密方法*/
    public String encryptPassword(Object plaintextPassword) throws  IllegalArgumentException;

}
